

// JavaScript Document

var iframetag='<iframe id="masterdiv" src="../images/kf.htm" allowTransparency="true" width="88px" height="320px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" style="position: absolute; left: 8px; top: 8px;"></iframe>'
var masterdivleft="8px"
var masterdivtop="bottom"
var ie=(document.all || window.opera) && document.getElementById
var iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
if (ie)
document.write(iframetag)
function positionit(){
masterdivobj=document.getElementById("masterdiv")
var window_width=ie && !window.opera? iebody.clientWidth : window.innerWidth-20
window_height=ie && !window.opera? iebody.clientHeight : window.innerHeight
var dsocleft=ie? iebody.scrollLeft : pageXOffset
var masterdivwidth=masterdivobj.width
masterdivheight=masterdivobj.height
masterdivobj.style.left=(masterdivleft=="right")? window_width-masterdivwidth-20 : masterdivleft
setInterval("repositionit()", 100)
}
function repositionit(){
if (ie){
dsoctop=ie? iebody.scrollTop : pageYOffset
masterdivobj.style.top=(masterdivtop=="bottom")? window_height-masterdivheight-14+dsoctop : parseInt(masterdivtop)+dsoctop
}
}
if (window.attachEvent)
window.attachEvent("onload", positionit)


function killErrors() {
return true;
}
window.onerror = killErrors

function maxWin() {
	if (parseInt(navigator.appVersion)>3) {
		  if (navigator.appName=="Netscape") {
			   if (top.screenX>0 || top.screenY>0) top.moveTo(0,0);
			   if (top.outerWidth < screen.availWidth) top.outerWidth=screen.availWidth;
			   if (top.outerHeight < screen.availHeight) top.outerHeight=screen.availHeight;
		  }
		  else {
			   top.moveTo(-4,-4);
			   top.resizeTo(screen.availWidth+8,screen.availHeight+8);
		  }
	}
}
